<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="tag" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/resources/css/form.css"
	type="text/css" />
</head>

<div class="managerDetails">
	<c:choose>
			<c:when test="${not empty workers}">
				<table id="tableLook" border="0">
					<tr>
						<td id="head">+</td>
						<td id="head"><tag:message code="worker.username" /></td>
						<td id="head"><tag:message code="worker.name" /></td>
						<td id="head"><tag:message code="worker.surname" /></td>
					</tr>
					<c:forEach var="employee" items="${workers}">
						<tr>
							<td><input type="checkbox" name="nazwa"
								value="${employee.username}" /></td>
							<td>${employee.username}</td>
							<td>${employee.name}</td>
							<td>${employee.surname}</td>
						</tr>
					</c:forEach>
				</table>
				<input type="submit" class="submit" />
			</c:when>
			<c:otherwise> workers is not exists </c:otherwise>
	</c:choose>
</div>
</html>